package com.jin.spirng_boot_learn.ioc.beans;

import org.springframework.beans.factory.FactoryBean;


public class ShipFactoryBean implements FactoryBean<Ship> {
    @Override
    public Ship getObject() throws Exception {
        return new Ship();
    }

    @Override
    public Class<?> getObjectType() {
        return Ship.class;
    }

    @Override
    public boolean isSingleton() {
        return true;
    }
}
